//
//  LOLRecommendController.swift
//  MyLOLSwiftProject
//
//  Created by apple on 2016/12/3.
//  Copyright © 2016年 WangChen. All rights reserved.
//

import UIKit

class LOLRecommendController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        navigationItem.title = "推荐"
        
        setupSegment()
        
    }

    //布置segment
    private func setupSegment(){
        
        let rvc = LOLRecentUpdateController()
        let cvc = LOLCompetitionController()
        let gvc = LOLGatherController()
        let hvc = LOLHotAnchorController()
        
        let vcArray = [rvc,cvc,gvc,hvc]
        let titleArray = ["最近更新","比赛视频","精彩集锦","大神解说"]
        
        let segmentView: LOLSegmentView = LOLSegmentView(frame: CGRect(x: 0, y: 64, width: kScreenWidth, height: kScreenHeight - 64), btnNameArr: titleArray, controllerArr: vcArray, parentController: self)
        
        view.addSubview(segmentView)
    }
    
    
    
    

}
